package global

import "time"

const (
	// Redis Key
	//用户相关
	USER_SHORTPLAY_LIKE_REDIS_KEY    = "user:shortplay:like:%d:%d:%s:%s" // 用户短剧喜欢key p1: 商户ID p2: 用户ID p3: 短剧ID p4: 第几集
	USER_SHORTPLAY_COLLECT_REDIS_KEY = "user:shortplay:collect:%d:%s:%s" // 用户短剧收藏key p1: 商户ID p2: 用户ID p3: 短剧ID

	//短剧相关（按商户）
	TANENT_SHORTPLAY_LIKE     = "shortplay:like"     //剧喜欢统计key
	TANENT_SHORTPLAY_LIKE_NUM = "shortplay:like:num" //集喜欢统计key
	TANENT_SHORTPLAY_COLLECT  = "shortplay:collect"  //剧收藏统计key
	TANENT_SHORTPLAY_LOOK     = "shortplay:look"     //观看剧集收藏统计key

	TANENT_SHORTPLAY_LIKE_TIMES_REDIS_KEY         = "tanent:shortplay:like:times:%v"         // 短剧喜欢数量key p1: 商户ID
	TANENT_SHORTPLAY_EPISODE_LIKE_TIMES_REDIS_KEY = "tanent:shortplay:episode:like:times:%v" // 剧集喜欢数量key p1: 商户ID
	TANENT_SHORTPLAY_COLLECT_TIMES_REDIS_KEY      = "tanent:shortplay:collect:times:%v"      // 短剧收藏数量key p1: 商户ID
	TANENT_SHORTPLAY_EPISODE_LOOK_TIMES_REDIS_KEY = "tanent:shortplay:episode:look:times:%v" // 剧集观看数量key p1: 商户ID  p2: 短剧ID p3: 第几集
	TANENT_SHORTPLAY_LOOK_TIMES_REDIS_KEY         = "tanent:shortplay:look:times:%v"         // 短剧观看数量key p1: 商户ID

	//全局常量
	QINIU_PLAY_DURATION = 2 * 3600 * time.Second //七牛视频播放签名有效期
)
